﻿using UnityEngine;
using System.Collections;

public class GameManagerScript : MonoBehaviour {

	public float clockTime;
	public int clockCount;
	public GUIText zeit;

	// Use this for initialization
	void Start () {
		clockTime = 120;
		zeit.text = "Zeit: " + clockTime;
		clockCount = 0;
	}
	
	// Update is called once per frame
	void Update () {

		/* Timer */
		clockTime -= Time.deltaTime;
		Debug.Log ( clockTime );
		float minutes = clockTime / 60;
		float seconds = clockTime % 60;
		zeit.text = "Zeit: " + (int)minutes + ":" + (int)seconds;
	}
}
